OPC Studio User's Guide and Reference
OPC Data Client Visual C++ Examples
Examples > Examples in the Product and on the Web > OPC Data Client COM Examples > OPC Data Client Visual C++ Examples
In This Topic

The majority of Visual C++ examples are currently provided for Microsoft Visual Studio 2022.

We also provide an example in Microsoft Visual Studio 6.0 (Visual C++ 6.0), to show the feasibility, although we do not regularly update it with newer version of OPC Data Client.

Examples in Visual Studio 2022+

All examples #include (through stdafx.h) a QuickOpc.h file in the SDK\include subdirectory. This file imports all OPC Data Client type libraries and declares wrappers for OPC Data Client interfaces and classes.

We cannot assure that the examples target one of the Windows SDK versions installed in your development computer. When opening or building the examples, you may receive a warning or error to this effect. The examples do not rely on particulars of any Windows SDK version, and you should be able to easily retarget them to the Windows SDK version of your wish. In Visual Studio, if the retargeting is not offered to you or performed automatically, right-click on the solution node in the Solution Explorer, select the Retarget solution command, and proceed as needed.

Examples in Visual Studio 6.0

You will find some more information to this subject in the Knowledge Base article .

All examples #include (through stdafx.h) a QuickOpc.h file in the SDK\include subdirectory. This file imports all OPC Data Client type libraries and declares wrappers for OPC Data Client interfaces and classes.

See Also

Fundamentals

Knowledge Base